package com.tanhua.server.service;

import com.tanhua.model.dto.MovementDto;
import com.tanhua.model.vo.MovementsVo;
import com.tanhua.model.vo.PageResult;
import com.tanhua.model.vo.VisitorsVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author wjs
 * @version 1.0
 * @date 2021/12/26 0026 上午 11:47
 */
public interface MovementService {
    //发布动态
    void publishMovement(MovementDto movementDto, MultipartFile[] imageContent);

    //查询我的动态
    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    //查询好友动态
    PageResult findFriendMovements(Integer page, Integer pagesize);

    PageResult findRecommendMovements(Integer page, Integer pagesize);

    MovementsVo findById(String movementId);

    Integer addLike(String movementId);

    Integer disLike(String movementId);

    Integer addLove(String movementId);

    Integer unLove(String movementId);

    List<VisitorsVo> queryVisitorsList();
}
